package com.limit.exception;

/**
 * @title: RequestLimitException
 * @Author xu-xiang
 * @Date: 2024/3/25 14:57
 * @description:
 */
public class RequestLimitException extends RuntimeException {

    private static final String DEFAULT_ERROR_MSG = "Request error, your requests are too frequent";

    public RequestLimitException() {
        this(DEFAULT_ERROR_MSG);
    }

    public RequestLimitException(String message) {
        super(message);
    }

    public RequestLimitException(String message, Throwable cause) {
        super(message, cause);
    }

    public RequestLimitException(Throwable cause) {
        super(cause);
    }

    public RequestLimitException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
